[][src]Crate rtp_rs

Parser for packets formatted per RFC 3550, A Transport Protocol for Real-Time Applications.

use rtp_rs::*;
// let data = ...acquire UDP packet from the network etc...
if let Ok(rtp) = RtpReader::new(data) {
    println!("Sequence number {:?}", rtp.sequence_number());
    println!("Payload length {:?}", rtp.payload().len());
}

Structs

RtpReader

Wrapper around a byte-slice of RTP data, providing accessor methods for the RTP header fields.

Seq

16 bit RTP sequence number value, as obtained from the sequence_number() method of RtpReader.

SeqIter

An Iterator which can produce values from the given start value to the given end value, inclusive.

Enums

RtpHeaderError

Reasons for RtpHeader::new() to fail

Traits

IntoSeqIterator

Trait for types that can produce a SeqIter, with an implementation provided for Range<Seq>.